$(function() {
    $("#form").validate({
        rules : {
            "companypledger.id" : {
               
               digits : true,
            },
            "companypledger.cid" : {
		       
               digits : true,
            },
            "companypledger.collateralname" : {
            	required : true,
               maxlength :22,
            },
            "companypledger.collateralnumber" : {
               digits : true,
            },
            "companypledger.ownershipofcollateral" : {
               maxlength :22,
            },
            "companypledger.themortgagerightofuse" : {
               maxlength :22,
            },
            "companypledger.propertyrightcardnumber" : {
               maxlength :22,
            },
            "companypledger.collateralislocated" : {
               maxlength :127,
            },
            "companypledger.collateralvalueidentification" : {
               number : true,
            },
            "companypledger.mortgagorshareofcollateral" : {
               maxlength :22,
            },
            "companypledger.otherpeoplesname" : {
               maxlength :22,
            },
            "companypledger.otherconditionscollateral" : {
               maxlength :22,
            },
            "companypledger.remarks" : {
               maxlength :127,
            },
            "companypledger.typecustom" : {
               digits : true,
            },
            "companypledger.typerelation" : {
               digits : true,
            },
            "companypledger.assessvalue" : {
               number : true,
            },
            "companypledger.marketvalue" : {
               number : true,
            },
            "companypledger.assessorganization" : {
               maxlength :75,
            },
            "companypledger.assessor" : {
               maxlength :22,
            },
            "companypledger.assessdate" : {
            },
        },
    messages : {
        "companypledger.id" : {
            required : '请填写!',
               digits : '只允许填数字  !',
        },
        "companypledger.cid" : {
               digits : '只允许填数字  !',
        },
        "companypledger.collateralname" : {
        	required : '请填写名称',
               maxlength : '抵押物名称 长度超限,允许最大长度为22!',
        },
        "companypledger.collateralnumber" : {
               digits : '抵押物数量只允许填数字  !',
        },
        "companypledger.ownershipofcollateral" : {
               maxlength : '抵押物的所有权 长度超限,允许最大长度为22!',
        },
        "companypledger.themortgagerightofuse" : {
               maxlength : '抵押物的使用权 长度超限,允许最大长度为22!',
        },
        "companypledger.propertyrightcardnumber" : {
               maxlength : '产权证号码 长度超限,允许最大长度为22!',
        },
        "companypledger.collateralislocated" : {
               maxlength : '抵押物所在地 长度超限,允许最大长度为127!',
        },
        "companypledger.collateralvalueidentification" : {
               number : '抵押物认定价值输入的数字不合法  !',
        },
        "companypledger.mortgagorshareofcollateral" : {
               maxlength : '抵押人对抵押物拥有的份额 长度超限,允许最大长度为22!',
        },
        "companypledger.otherpeoplesname" : {
               maxlength : '其他共有人的名称 长度超限,允许最大长度为22!',
        },
        "companypledger.otherconditionscollateral" : {
               maxlength : '抵押物的其他状况 长度超限,允许最大长度为22!',
        },
        "companypledger.remarks" : {
               maxlength : '备注 长度超限,允许最大长度为127!',
        },
        "companypledger.typecustom" : {
               digits : '1,个人，2公司只允许填数字  !',
        },
        "companypledger.typerelation" : {
               digits : '1,抵，2质只允许填数字  !',
        },
        "companypledger.assessvalue" : {
        	  number : '评估值输入的数字不合法  !',
        },
        "companypledger.marketvalue" : {
        	  number : '市场价值输入的数字不合法  !',
        },
        "companypledger.assessorganization" : {
               maxlength : '评估机构 长度超限,允许最大长度为75!',
        },
        "companypledger.assessor" : {
               maxlength : '评估员 长度超限,允许最大长度为22!',
        },
        "companypledger.assessdate" : {
        },
       }
});
});
